package com.woniu108.carService.commos.exception.car;

/**
 * @author 谭鹏
 */

public enum CarExceptionCode {
    /**
     *
     */
    CAR_BRAND_NOT_HAVE(30010,"汽车品牌不存在"),
    CAR_BRAND_STATE_DELETE(30011,"汽车品牌已被删除"),
    CAR_BRAND_STATE_BAN(30012,"汽车品牌已被禁用"),
    CAR_BRAND_STATE_NORMAL(30014,"汽车品牌已是可用状态"),
    CAR_BRAND_HAVE(30015,"汽车品牌已存在"),

    CAR_SERIES_NOT_HAVE(30020,"汽车系列不存在"),
    CAR_SERIES_HAVE(30021,"汽车系列已存在"),
    CAR_SERIES_STATE_DELETE(30022,"汽车系列已删除"),
    CAR_SERIES_STATE_BAN(30023,"汽车系列已禁用"),
    CAR_SERIES_STATE_NORMAL(30024,"汽车系列已是可用状态"),

    CAR_STYLE_NOT_HAVE(30030,"汽车款式不存在"),
    CAR_STYLE_HAVE(30031,"汽车款式已存在"),
    CAR_STYLE_STATE_DELETE(30032,"汽车款式已删除"),
    CAR_STYLE_STATE_BAN(30033,"汽车款式已禁用"),
    CAR_STYLE_STATE_NORMAL(30034,"汽车款式已是可用状态"),

    CAR_STYLE_YEAR_NOT_HAVE(30040,"汽车该年份不存在该款式"),
    CAR_STYLE_YEAR_HAVE(30041,"汽车该年份存在该款式"),
    CAR_STYLE_YEAR_STATE_DELETE(30042,"汽车该年份该款式已删除"),
    CAR_STYLE_YEAR_STATE_BAN(30043,"汽车该年份该款式已禁用"),
    CAR_STYLE_YEAR_STATE_NORMAL(30044,"汽车该年份该款式已是可用状态"),
    CAR_HOT_NOT_HAVE(30050,"汽车热度榜不存在该品牌"),
    CAR_HOT_STATE_BAN(30051,"汽车热度榜该品牌已被禁用"),
    CAR_HOT_HAVE(30052,"汽车热度榜存在该品牌"),
    CAR_HOT_STATE_DELETE(30053,"汽车热度榜该品牌已删除"),
    CAR_HOT_STATE_NORMAL(30054,"汽车热度榜该品牌已是可用状态"),

    CAR_DISPLACEMENT_HAVE(30060,"该排量已存在"),
    CAR_DISPLACEMENT_NOT_HAVE(30061,"该排量不存在"),
    CAR_SERIES_YEAR_HAVE(30070,"该年份已存在"),
    CAR_NUM_HAVE(30080,"该车牌号已存在"),
    THIS_CAR_NOT_YOU(30081,"该车辆不是此次登陆用户所拥有"),
    NOT_UPDATE_MILES_SMALL(30082,"公里数不能改小"),
    CAR_INFO_NOT_HAVE(30083,"该车辆不存在"),
    CAR_INFO_NO_EQUAL_USER(30084,"车辆信息不属于用户");



    private Integer code;
    private String message;

    CarExceptionCode() {
    }

    CarExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
